package ru.alt22.visor.php.ui.swt;

import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.ElementListSelectionDialog;

import ru.alt22.visor.php.ui.PDToolsUIPlugin;

public class PHPTypeSelectionDialog extends ElementListSelectionDialog {
	
	final private static String ELEMENTS_TITLE = "Matching resources: ";

	final private static String IMAGE = "icons/dialog/opentype.gif"; //$NON-NLS-1$

	public PHPTypeSelectionDialog(Shell parent, ILabelProvider renderer) {
		super(parent, renderer);
		setHelpAvailable(false);
		setIgnoreCase(true);
		setAllowDuplicates(false);
		setImage(PDToolsUIPlugin.getImageDescriptor(IMAGE).createImage());
		setStatusLineAboveButtons(false);
		
		setMessage(ELEMENTS_TITLE);
	}

	public void clearElements() {
		setElements(null);
	}

	public void useClasses() {
		String[] test = new String[5];
		test[0] = "test1";
		test[1] = "test2";
		test[2] = "test3";
		test[3] = "test4";
		test[4] = "test5";
		setElements(test);
	}

	public void useInterfaces() {
	}

	public void iseMethods() {
	}

}